package cn.zsc.netdisk.pojo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 文件分享链接信息
 * @author ccying
 * @date 2021/3/7
 */
@Data
public class Share {
    /**
     * ID
     * */
    private int id;
    /**
     * 分享账号ID
     * */
    private String uid;
    /**
     * 文件名
     */
    private String name;
    /**
     * 分享密码
     * */
    private int password;
    /**
     * 分享链接url
     * */
    private String url;
    /**
     * 创建时间
     * */
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime created;
}
